package com.heima.Serivce.impl;

import com.heima.Serivce.ArticleCilent;
import com.heima.model.Article.Pojo.ApAuthor;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.model.wemedia.dtos.WmNewstoArticleDto;
import org.springframework.stereotype.Component;

@Component
public class ArticleClientFallback implements ArticleCilent {
    @Override
    public ResponseResult SaveArticle(WmNewstoArticleDto wmNewstoArticleDto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

    @Override
    public ResponseResult AddAuthor(ApAuthor apAuthor) {
        return ResponseResult.errorResult(500,"操作失败，请稍后重试");
    }

    @Override
    public ResponseResult DwonArticle(Long id) {
        return ResponseResult.errorResult(500,"操作失败，请稍后重试");
    }
}
